﻿using Coldairarrow.Business.Base_Manage;
using Coldairarrow.Entity.Base_Manage;
using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.Interface;
using Coldairarrow.Util;
using EFCore.Sharding;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Api.Controllers.Base_Manage
{
    /// <summary>
    /// 操作OL采购需求
    /// </summary>
    [Route("/OpenApi/[controller]/[action]")]
    [AllowAnonymous]
   
    public class ProRequirementsController : BaseApiController
    {

        OL_ProRequirementsBusiness OL_ProRequirements { get; }
        public ProRequirementsController(IDbAccessor db)
        {
            OL_ProRequirements = new OL_ProRequirementsBusiness(db);
        }
        

        [HttpPost]
        public async Task<string> EditRows(ProRequirementsDTO items)
        {
            await OL_ProRequirements.EditRows(items);
            return "OK";
        }

       

    }
}